<?php
/**
 *  报税方式
*/

namespace app\api\service;


class TaxPackage
{
    private $taxPackage = [
        [
            'id' => 1,
            'name' => 'DDU',
            'description' => 'DDU'
        ],
        [
            'id' => 2,
            'name' => 'DDP',
            'description' => 'DDU'
        ]
    ];


    /**
     *  获取列表
    */
    public function getTaxPackageList(){
        return $this->taxPackage;
    }

    /**
     * 获取一条
    */
    public function getTaxPackageItem($id){
        foreach ($this->taxPackage as $value){
            if($value['id'] == $id){
                return $value;
            }
        }
        return false;
    }

}